﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="StaffOverview.aspx.cs" Inherits="SwenAssigment.StaffOverview" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            text-align: center;
        }

        .auto-style2 {
            width: 100%;
        }

        .auto-style3 {
            width: 592px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="auto-style1" style="width: auto">Housekeeping &amp; Staff Management</h1>
    <p style="text-align: right">
        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/StaffSearch.aspx">Staff Search</asp:HyperLink>
    </p>
    <asp:GridView ID="GridView1" runat="server" Width="677px" AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" Visible="False">
        <Columns>
            <asp:BoundField DataField="StaffId" HeaderText="Staff ID" />
            <asp:BoundField DataField="StaffName" HeaderText="Staff Name" />
            <asp:BoundField DataField="NRIC" HeaderText="NRIC" />
            <asp:BoundField DataField="Dob" HeaderText="Date of Birth" />
            <asp:BoundField DataField="BankAccountNumber" HeaderText="Bank Account Number" />
            <asp:BoundField DataField="Address" HeaderText="Address" />
            <asp:BoundField DataField="ContactNumber" HeaderText="Contact Number" />
            <asp:BoundField DataField="Job" HeaderText="Job" />
            <asp:HyperLinkField HeaderText="Details" Text="Details" DataNavigateUrlFields="StaffId" DataNavigateUrlFormatString="~/StaffEdit.aspx?StaffId={0}" />
            <asp:CommandField HeaderText="Delete" ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>

    <asp:Label ID="NoDataFoundLbl" runat="server" ForeColor="Red" Text="No Data Found!" Visible="False"></asp:Label>

    <table class="auto-style2" style="width: auto">
        <tr>
            <td class="auto-style3">
                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Default.aspx">Back to Home Page</asp:HyperLink>
            </td>
            <td>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/StaffCreation.aspx">Add New Staff</asp:HyperLink></td>
        </tr>
    </table>

</asp:Content>
